<template>
    <div >
        首页2
        <el-button type="success" @click="goHome1">首页1</el-button>
        <el-button type="success" @click="goHome2">首页2</el-button>
        <p>{{num}}</p>
        <el-button type="success" @click="changeNum">change</el-button>
    </div>
</template>
<script lang="ts">
export default {
    data() {
        return {
            num:12
        };
    },
    mounted(){
        console.log('wwww');
        console.log(this.$wq);
    },
    methods: {
        goHome1(){
            this.$router.push({
                name:'index'
            });
        },
        goHome2(){
            this.$router.push({
                name:'index2'
            });
        },
        changeNum(){
            this.num ++;
            //console.log(this.$wq);
        },
        
    }
};
</script>

<style>

</style>
